import request from '@/utils/request'

export function fetchList(listQuery) {
    return request({
      url: '/getStoreroomInfo',
      method: 'post',
      data: {
          name:listQuery.name
      },
      params: {
        pageNum: listQuery.page,
        pageSize: listQuery.limit
      }
    })
  }

  export function updateStoreroom(data) {
    return request({
      url: '/updateStoreroomInfo',
      method: 'post',
      data
    })
  }

  export function createStoreroom(data) {
    return request({
      url: '/updateStoreroomInfo',
      method: 'post',
      data
    })
  }

  export function deletDocument(id) {
    return request({
      url: '/deleteStoreroomInfo/' + id,
      method: 'delete'
    })
  }

  
  